/// @description 绘制进度
// You can write your code in this editor

var alpha = draw_get_alpha();
draw_clear_alpha(c_white, 0);

sai_scrDrawSprite9(sprite_index, image_index, 3, 3, sprite_width, sprite_height, 0, 0);

//绘制进度
var color = draw_get_color();
draw_set_color(0x83AF9B);

var len = progress/progress_max;
draw_rectangle(3, 3, (sprite_width-3)*len, sprite_height-3, false);

draw_set_color(color);
draw_set_alpha(alpha);